Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #2: Multi-line output (log/list) #4

Closed
wants to merge 1 commit into from
Closed

Issue #2: Multi-line output (log/list) #4

wants to merge 1 commit into from

Conversation

g4z
Copy link

@g4z g4z commented Mar 7, 2016

Hi, See issue #2. This works for me. Please merge if you want. Regards!

});

spinner.start();

setTimeout(() => {
spinner.color = 'yellow';
spinner.text = 'Loading rainbows';
spinner.setColor('yellow');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use Object.defineProperty to do the same thing.

Object.defineProperty(this, 'color', {
  set: function(color) {
    // do whatever you want to do when `spinner.color` is set.
  }
});

@SamVerschueren
Copy link
Contributor

Gave some feedback. Not sure if @sindresorhus wants this though as the library's description says

Elegant terminal spinner

This behaviour might not really fit into the idea of the library.

@sindresorhus
Copy link
Owner

Sorry about delay @g4z. I'm strapped for time. I haven't decided yet. Need to find some time this week to review the PR and think about the best API for something like this. But I do agree with the PR feedback from @SamVerschueren.

@sindresorhus
Copy link
Owner

This is now possible with: https://github.com/SamVerschueren/listr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants